package com.yunxi.service.localService.impl.otd;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.yunxi.core.service.ServiceImplPlus;
import com.yunxi.dao.otd.OtdModelProduceConfigMapper;
import com.yunxi.model.otd.OtdModelProduceConfig;
import com.yunxi.service.localService.otd.OtdModelProduceConfigService;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 车型投产日设置 服务实现类
 * </p>
 *
 * @author XUQI
 * @since 2019-07-09
 */
@Service
public class OtdModelProduceConfigServiceImpl extends ServiceImplPlus<OtdModelProduceConfigMapper, OtdModelProduceConfig> implements
    OtdModelProduceConfigService {

    /**
     * 查询启用的投产日约束
     * @return List<OtdModelProduceConfig>
     */
    @Override
    public List<OtdModelProduceConfig> queryEnableList() {
        LambdaQueryWrapper<OtdModelProduceConfig> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(OtdModelProduceConfig::getIsOpen,"1");
        return list(queryWrapper);
    }
}
